package com.example.sharding.dao;

import com.example.sharding.vo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;

/**
 * Created by mazeyi on 2019/12/3.
 * @author mazeyi
 */
@Component
public interface UserRepository extends JpaRepository<User, Long> {

    /**
     * 根据您名字查找用户
     * @param name
     * @return
     */
    User findByUserName(String name);

}